package com.leon.alishop.core.enumeration;

public enum GoodsStatusEnum {

	ONLINE("在线"),
	
	OFFLINE("下线"),
	
	NAN_STOCK(("无库存")),
	
	UNFOUND("未找到")
	;
	
	private String desc;
	
	GoodsStatusEnum(String desc){
		this.desc = desc;
	}

	public String getDesc() {
		return desc;
	}
	
	public static GoodsStatusEnum valueOfOrdinal(Integer ordinal){
		if(ordinal != null)
		for (GoodsStatusEnum e : GoodsStatusEnum.values()) {
			if(e.ordinal() == ordinal)
				return e;
		}
		return null;
	}
}
